<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of deals_model
 *
 * @author Administrator
 */
class deals_model extends CI_Model {
    //put your code here
    function __construct() {
        parent::__construct();
    }
    
    function getAllDeals(){
      $query = $this->db->get(tbl_deals);
      return $query->result();
    }
    
    function getDealByID($id){
        $query=$this->db->get_where(tbl_deals,array('deal_id'=>$id));
        return $query->result();
    }
}

?>
